package com.dgut.lotterySystem.controller.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class CreatePrizeParam implements Serializable {
    /**
     * 奖品名称不能为空
     */
    @NotBlank(message="奖品名称不能为空")
    private String prizeName;
    /**
     * 奖品描述
     */
    private String description;
    /**
     * 奖品价值
     */
    @Min(value = 0, message = "价格不能为负")
    private BigDecimal price;
}
